//
//  mainView.h
//  SmartHome
//
//  Created by 赵嘉诚 on 15/3/15.
//  Copyright (c) 2015年 赵嘉诚. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "defineHead.h"
#import "sendRespondProtocol.h"

@protocol mainViewDelegate <NSObject>

@optional
- (void)showTitle:(NSString *)title;
- (void)hideTabView;
- (void)showTabView;
- (void)showLeftButton;
- (void)hideLeftButton;


@end

@interface mainView : UIView

@property (nonatomic, weak) id<mainViewDelegate> delegate;
@property (nonatomic, copy) void (^sendMessage)(NSString *, NSString *);

- (id) initWithFrame:(CGRect)frame andDic:(NSDictionary *)dic;

- (void)showFloorTable;
- (void)showRoomTable;
- (void)showDeviceTable;

@end

@interface cellState : NSObject

@property (nonatomic, assign) BOOL state;
@property (nonatomic, assign) NSInteger count;

@end
